<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>项目管理CRM | Log in</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="/static/AdminLTE-2.3.11/bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome -->
    <!--link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.5.0/css/font-awesome.min.css"-->
    <!-- Ionicons -->
    <!--link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/ionicons/2.0.1/css/ionicons.min.css"-->
    <!-- Theme style -->
    <!--link rel="stylesheet" href="/static/AdminLTE-2.3.11/dist/css/AdminLTE.min.css"-->
    <!-- iCheck -->
    <!--link rel="stylesheet" href="/static/AdminLTE-2.3.11/plugins/iCheck/square/blue.css"-->

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
</head>

<body class="hold-transition login-page">
    <div class="login-box">
        <div class="login-logo">
            <a href="/login"><b>多媒体教室满意度调查</b></a>
        </div>
        <!-- /.login-logo -->
        <div class="login-box-body">
            <p class="login-box-msg">请您根据本堂课的使用情况填写</p>

            <form action="/myddc" method="post">
                <!--div class="form-group has-feedback">
        <input name="user_name" id="user_name" type="text" class="form-control" placeholder="输入您的工号">
        <span class="glyphicon glyphicon-user form-control-feedback"></span>
      </div>
      <div class="form-group has-feedback">
        <input name="user_password" id="user_password" type="password" class="form-control" placeholder="输入密码">
        <span class="glyphicon glyphicon-lock form-control-feedback"></span>
      </div-->

                <div class="row">
                    <div class="col-xs-5">
                        <label for="name">投影机使用满意度</label>
                    </div>
                    <!-- /.col -->
                    <div class="col-xs-7">
                        <label class="checkbox-inline">
        <input type="radio" name="tyj" id="tyj-1" value="1" checked>满意
      </label>
                        <label class="checkbox-inline">
        <input type="radio" name="tyj" id="tyj-2" value="2">不满意
      </label>
                    </div>
                    <!-- /.col -->
                </div>
                <!--row-->
                <br/>
                <div class="row">
                    <div class="col-xs-5">
                        <label for="name">电脑使用满意度</label>
                    </div>
                    <!-- /.col -->
                    <div class="col-xs-7">
                        <label class="checkbox-inline">
        <input type="radio" name="dn" id="dn-1" value="1" checked>满意
      </label>
                        <label class="checkbox-inline">
        <input type="radio" name="dn" id="dn-2" value="2">不满意
      </label>
                    </div>
                    <!-- /.col -->
                </div>
                <!--row-->
                <br/>
                <div class="row">
                    <div class="col-xs-5">
                        <label for="name">扩音系统满意度</label>
                    </div>
                    <!-- /.col -->
                    <div class="col-xs-7">
                        <label class="checkbox-inline">
        <input type="radio" name="ky" id="ky-1" value="1" checked>满意
      </label>
                        <label class="checkbox-inline">
        <input type="radio" name="ky" id="ky-2" value="2">不满意
      </label>
                    </div>
                    <!-- /.col -->
                </div>
                <!--row-->
                <br />
                <div class="row">
                    <div class="col-xs-5">
                        <label for="name">服务满意度</label>
                    </div>
                    <!-- /.col -->
                    <div class="col-xs-7">
                        <label class="checkbox-inline">
        <input type="radio" name="fw" id="fw-1" value="1" checked>满意
      </label>
                        <label class="checkbox-inline">
        <input type="radio" name="fw" id="fw-2" value="2">不满意
      </label>
                    </div>
                    <!-- /.col -->
                </div>
                <!--row-->
                <br />
                <div class="row">
                    <div class="col-xs-5">
                        <label for="qt">其它</label>
                    </div>
                    <!-- /.col -->
                    <div class="col-xs-7">
                        <input type="text" name="qt" class="form-control" id="qt" placeholder="建议或问题">
                    </div>
                    <!-- /.col -->
                </div>
                <!--row-->
                <br/>
                <div class="row">
                    <div class="col-xs-4">
                    </div>
                    <!-- /.col -->
                    <div class="col-xs-8">
                        <button type="button" id="submit" name="submit" class="btn btn-primary btn-block btn-flat">提交您的意见</button>
                    </div>
                    <!-- /.col -->
                </div>
            </form>

            <!--div class="social-auth-links text-center">
      <p>- OR -</p>
      <a href="#" class="btn btn-block btn-social btn-facebook btn-flat"><i class="fa fa-facebook"></i> Sign in using
        Facebook</a>
      <a href="#" class="btn btn-block btn-social btn-google btn-flat"><i class="fa fa-google-plus"></i> Sign in using
        Google+</a>
    </div>
    <!-- /.social-auth-links -->


        </div>
        <!-- /.login-box-body -->
    </div>
    <!-- /.login-box -->

    <!-- jQuery 2.2.3 -->
    <script src="/static/AdminLTE-2.3.11/plugins/jQuery/jquery-2.2.3.min.js"></script>
    <!-- Bootstrap 3.3.6 -->
    <script src="/static/AdminLTE-2.3.11/bootstrap/js/bootstrap.min.js"></script>
    <!-- iCheck -->
    <script src="/static/AdminLTE-2.3.11/plugins/iCheck/icheck.min.js"></script>
    <script>
        $("#submit").on('click', function(e) {
            $(this).text("正在提交中...");
            //alert("hehe");
            $.ajax({
                type: "POST",
                dataType: "json",
                url: '/myddc',
                data: {
                    id: "110",
                    data: "ee"
                },
                success: function(res) {
                        console.log("返回数据：")
                        console.log(res)
                        if (res.RetString == 'ok') {
                            //提交成功
                            //alert(res . msg);
                            //成功后跳转路由设置
                            window.location.href = res.GoUrl;
                        } else {
                            //提交不成功
                        }
                    } //success
            }); //$.ajax
        }); //$("#submit").on(

        $(function() {
            $('input').iCheck({
                checkboxClass: 'icheckbox_square-blue',
                radioClass: 'iradio_square-blue',
                increaseArea: '20%' // optional
            });
        });
    </script>
</body>

</html>